﻿using System;
using System.Collections.Generic;

namespace ThreeDContentPipeline
{
    public class MapContent
    {
        public MapContent()
        {
            Batches = new List<BatchContent>();
            Primitives = new List<PrimitiveContent>();
        }

        public List<BatchContent> Batches
        {
            get;
            private set;
        }

        public List<PrimitiveContent> Primitives
        {
            get;
            private set;
        }

        public void ImportTextures(ContentImporterContext context)
        {
            Texture2DImporter importer = new Texture2DImporter();

            foreach (BatchContent batch in Batches)
            {
                context.Import<Texture2DContent>(batch.Texture1, importer);
                context.Import<Texture2DContent>(batch.Texture2, importer);
            }
        }
    }
}
